package com.oasys.dao;

import com.oasys.entity.NoticePageVo;
import com.oasys.entity.NoticePo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2022/5/13
 **/
@Mapper
public interface NoticeMapper {

    /**
     * 发布公告
     * @param po p
     * @return bool
     */
    Boolean publishNotice(@Param("po") NoticePo po);

    /**
     * 获取公告
     * @param noteVo
     * @return
     */
    List<NoticePo> getNoticeByPage(@Param("vo") NoticePageVo noteVo);

    /**
     * 隐藏公告
     * @param nid
     * @return
     */
    Boolean hideNotice(@Param("nid") Long nid);

    /**
     * 取消隐藏
     * @param nid
     * @return
     */
    Boolean cancelHideNotice(@Param("nid") Long nid);

    /**
     * del
     * @param nid
     * @return
     */
    Boolean deleteNote(@Param("nid") Long nid);
}
